//
//  LKMyCustomHeaderRowCell.m
//  Mideleague_Agent
//
//  Created by Zhiwang on 2020/6/23.
//  Copyright © 2020 Zhiwang. All rights reserved.
//

#import "LKMyCustomHeaderRowCell.h"
#import "LKMyCustomHeaderRow.h"

@interface LKMyCustomHeaderRowCell()

@property(nonatomic,strong)LKMyCustomHeaderRow *headerRow;
@property(nonatomic,strong)UIView *bgView;
@end

@implementation LKMyCustomHeaderRowCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, 120)];
        self.bgView.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.bgView];
    }
    return self;
}
-(void)setRow:(__kindof UFRow *)row{
    _headerRow = row;
    [super setRow:row];
    _headerRow.view = [[[NSBundle mainBundle] loadNibNamed:@"LKMySubordinateCheckStatuHeaderView" owner:self options:nil] lastObject];
    _headerRow.view.frame = CGRectMake(10, 10, WIDTH - 20, 100);
    _headerRow.view.layer.cornerRadius = 10;
    _headerRow.view.layer.masksToBounds = YES;
    _headerRow.view.inforModel = _headerRow.inforModel;
    [self.bgView addSubview:_headerRow.view];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
